﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _12.PrintEachIndexOfWord
{
    class PrintEachIndexOfWord
    {
        static void Main(string[] args)
        {

            char[] alphabet;
            alphabet = new char[26];
            int letter = 0x61;
            for (int i = 0; i < alphabet.Length; i++)
            {
                alphabet[i] =(char)(letter+i);
            }
            Console.WriteLine("word: ");
            string word = Console.ReadLine();
            word=word.ToLower();
            foreach (var let in word)
            {
                for (int i = 0; i < alphabet.Length; i++)
                {
                    if (let == alphabet[i])
                    {
                        Console.WriteLine("{0} = {1}",let,i+1);
                    }
                }
            }
        }
    }
}
